//
//  AboutJiukuViewController.m
//  JiuKuGospel
//
//  Created by jiukuyinyue on 15-9-1.
//  Copyright (c) 2015年 JiuKuForApp. All rights reserved.
//

#import "AboutJiukuViewController.h"
#import "SuggestMessageViewController.h"

@interface AboutJiukuViewController ()

@end

@implementation AboutJiukuViewController
- (BOOL)canBecomeFirstResponder{
    return YES;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"关于";
    [self setupUI];
}
- (void)setupUI
{
    UIImageView * titleImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.view.width / 5.0, self.view.width / 5.0)];
    titleImageView.image = [UIImage imageNamed:@"我的_设置_关于"];
    titleImageView.center = CGPointMake(self.view.center.x,titleImageView.width / 2.0 + 64+50);
    [self.view addSubview:titleImageView];
    
    UILabel * titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(titleImageView.left, titleImageView.bottom, titleImageView.width, 30)];
    titleLabel.text = @"九酷福音";
    titleLabel.textAlignment = NSTextAlignmentCenter;
    titleLabel.textColor = titleColorLSZ;
    [self.view addSubview:titleLabel];
    
    UILabel * bundleVSLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, titleLabel.bottom+10, self.view.width, 30)];
    bundleVSLabel.textAlignment = NSTextAlignmentCenter;
    bundleVSLabel.textColor = titleColorLSZ;
    NSDictionary * infoDic = [[NSBundle mainBundle] infoDictionary];
    CFShow((__bridge CFTypeRef)(infoDic));
    NSString * appVersion = [infoDic objectForKey:@"CFBundleShortVersionString"];
    bundleVSLabel.text = [NSString stringWithFormat:@"当前版本号: V %@", appVersion];
    [self.view addSubview:bundleVSLabel];
    if (ScreenWidth == 320) {
        titleLabel.font = FONT_(13.5);
        bundleVSLabel.font = FONT_(13.5);
    }else if(ScreenWidth == 375){
        titleLabel.font = FONT_(14);
        bundleVSLabel.font = FONT_(14);
    }else {
        titleLabel.font = FONT_(14.5);
        bundleVSLabel.font = FONT_(14.5);
    }
}
- (void)leftBtnAction
{
    [self.navigationController popViewControllerAnimated:YES];
}
@end
